import { baseDataList } from '@/service/baseData'

export const getBaseDataList = (type) => {
  return baseDataList({ type }).then(res => {
    return (res || []).map((item) => {
      const { name, rawDataId } = item
      return {
        label: name,
        value: rawDataId
      }
    })
  })
}
